<template>
	<view>
		<view class="head">
			<view class="head-icon"></view>
			<view class="head-title">找产品</view>
		</view>
		<view class="count">
			<view class="btn">已认证产品xxxx数</view>
		</view>
		<view class="img">
			<view v-for="(item,index) in images" :key="index">
				<view :class="index%2==0?'eachOne':'each'">
					<view class="">图片{{index+1}}</view>
					<view>{{item.type}}</view>
					<view>{{item.company}}</view>
				</view>
			</view>
		</view>
		<view class="count">
			<view class="btn">已认证产品xxxx数</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				images:[{
					name:'图1',
					type:'属性',
					company:'公司'
				},{
					name:'图2',
					type:'属性',
					company:'公司'
				},{
					name:'图3',
					type:'属性',
					company:'公司'
				},{
					name:'图4',
					type:'属性',
					company:'公司'
				},{
					name:'图5',
					type:'属性',
					company:'公司'
				},{
					name:'图6',
					type:'属性',
					company:'公司'
				}]
			}
		},
		methods: {
			
		}
	}
</script>

<style lang="scss" scoped>
.head{
	width: 100vw;
	height: 25px;
	font-size: 16px;
	display: flex;
	align-items: center;
	padding-left: 20px;
	.head-icon{
		background-color: rgb(159, 125, 76);
		width: 4px;
		height: 16px;
		margin-right: 5px;
	}
}
.count{
	margin-top: 10px;
	display: flex;
	padding-left: 20px;
	.btn{
		border: 1px solid;
		background-color: rgb(159, 125, 76);
		color:white;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 160px;
		font-size: 16px;
		border-radius: 80px;
	}
}
.img{
	// height: 100vh;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	
	width: calc(100vw - 40px);
	padding-left: 20px;
	padding-right: 20px;
	.each{
		position: relative;
		top: -20px;
		height: 140px;
		width: calc((100vw - 60px) / 2);
		margin-bottom: 20px;
		border: 1px solid;

	}
	.eachOne{
		position: relative;
		top: 10px;
		height: 140px;
		width: calc((100vw - 60px) / 2);
		margin-bottom: 20px;
		border: 1px solid red;
	}
}
</style>
